<html>
<head><meta charset="utf-8"><title>How to run specific benches · t-compiler/help · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/index.html">t-compiler/help</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/How.20to.20run.20specific.20benches.html">How to run specific benches</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="227154323"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/How%20to%20run%20specific%20benches/near/227154323" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joel Swedensky <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/How.20to.20run.20specific.20benches.html#227154323">(Feb 21 2021 at 08:59)</a>:</h4>
<p>Sorry if this is a stupid question, how do I only run a small subset of benches, i.e library/core/benches/char/methods? Everything I've tried hasn't worked, using that path and other things. I can run <code>x.py bench --stage 0 library/core</code> fine, which runs those benches eventually, but can't run solely those tests</p>



<a name="227155879"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/How%20to%20run%20specific%20benches/near/227155879" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> scottmcm <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/How.20to.20run.20specific.20benches.html#227155879">(Feb 21 2021 at 09:31)</a>:</h4>
<p>You can add <code>--test-args bench_take_while</code> and it'll only run things containing that substring, IIRC.</p>
<p>(I use this all the time for things like <code>test src\tests\ui --test-args try</code> and such.)</p>



<a name="227156541"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/How%20to%20run%20specific%20benches/near/227156541" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joel Swedensky <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/How.20to.20run.20specific.20benches.html#227156541">(Feb 21 2021 at 09:45)</a>:</h4>
<p>That was exactly what I was looking for, thanks!</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>